<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" type="text/css" href="../../css/mui.min.css" />
		<script src="../../js/mui.min.js" type="text/javascript" charset="utf-8"></script>
		<style>
			.main_content p {
				font-size: 1em;
				color: black;
				text-indent: 2em;
				padding: 6px;
			}
			.main_content img {
				padding: 8px;
			}
			.sub_header {
				text-align: center;
				background-color: rgba(0, 188, 0, 0.7);
				height: 36px;
				margin-top: 8px;
				margin-bottom: 8px;
			}
			.sub_header h3 {
				color: white;
				position: relative;
				top: 20%;
				transform: translateY(-50%);
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">Java 基础</h1>
		</header>
		<div class="mui-content">
			<div class="mui-content-padded" style="margin: 5px;">
				<div class="sub_header">
					<h3>第一个Java程序</h3>
				</div>
				<div class="main_content">
					<p>方法一：打开eclipse编译器，选择 File-&gt;New-&gt;Java project，输入工程名称，点击finish，在工程目录中选择src目录，在src中 new-&gt;file输入一个文件名（test.java），文件名后缀为.java 。 在test.java文件中输入如下代码：</p>

					<div style="background:#eee;border:1px solid #ccc;padding:5px 10px;">
						<p>import java.util.*;</p>

						<p>public class test {
							<br /> &nbsp;&nbsp; &nbsp;public static void main(String[] args) {
							<br />
							<br /> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;System.out.println(&quot;Hello,World！);
							<br /> &nbsp;&nbsp; &nbsp;}
							<br /> }
						</p>
					</div>

					<p>完成，点击保存。</p>

					<p>此代码完成一个简单的控制台输出功能。</p>

				</div>
			</div>
		</div>

	</body>

</html>